<template>
	<div class="hotzone">
		<div class="content">
			<el-image :src="STATIC_URL + datas.src" v-if="datas.src != ''" fit="contain" class="hotzone-image" />
			<SvgIcon v-else name="ele-Picture"></SvgIcon>
		</div>
		<!-- 删除组件 -->
		<slot name="deles" />
	</div>
</template>

<script setup lang="ts" name="hotzone">
import { ref } from 'vue';
import { STATIC_URL } from '/@/utils/config';
const props = defineProps({
	datas: {},
});
const name = ref();
</script>

<style scoped lang="scss">
.hotzone {
	position: relative;
	min-height: 30px;
	.hotzone-image {
		// max-height: 300px;
		width: 100%;
	}

	.content {
		display: flex;
		justify-content: center;
		align-items: center;
	}
}
</style>
